CC=g++
CFLAGS=-g -c
LDFLAGS=

SRC1=mainGeneration.cpp AbstractGraph.cpp Graph.cpp Tree.cpp BipartiteGraph.cpp SmallCover.cpp Algorithms.cpp Sat.cpp Minisat.cpp Flow.cpp  OrientedGraph.cpp

SRC2=mainAlgos.cpp AbstractGraph.cpp Graph.cpp Tree.cpp BipartiteGraph.cpp SmallCover.cpp Algorithms.cpp Sat.cpp Minisat.cpp Flow.cpp  OrientedGraph.cpp

OBJ1=$(SRC1:.cpp=.o)
OBJ2=$(SRC2:.cpp=.o)

EXECUTABLE1=mainGeneration
EXECUTABLE2=mainAlgos

all: $(EXECUTABLE1) 
$(EXECUTABLE1): $(OBJ1)
	$(CC) $(LDFLAGS) $(OBJ1) -o $(EXECUTABLE1)

all: $(EXECUTABLE2)
$(EXECUTABLE2): $(OBJ2)
	$(CC) $(LDFLAGS) $(OBJ2) -o $(EXECUTABLE2)

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.o $(EXECUTABLE1)
	rm -rf *.o $(EXECUTABLE2)